package cn.wp.common.core.module.log;

import cn.wp.common.core.dao.annotation.Column;
import cn.wp.common.core.dao.annotation.Table;
import lombok.Data;

import java.util.Date;

/**
 * 系统访问日志
 * Created by chenyb on 2019/09/29
 */
@Table("t_log")
@Data
public class AccessLogDo {

    private String id;

    @Column("user_id")
    private String userId;

    @Column("user_account")
    private String userAccount;

    @Column("user_name")
    private String userName;

    @Column("create_datetime")
    private Date createDatetime;

    @Column("ip_address")
    private String ipAddress;

    // 0-正常 1-异常
    private int status;

    @Column("resource_url")
    private String resourceUrl;

    // 单位：毫秒
    private long cost;

    private String trace;

}
